﻿using CSCSN.Foundation.SpecificationsForEntityModel;
using Microsoft.AspNetCore.Identity;
using System;

using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;

namespace CSCSN.EntitiyModels
{

    public class ApplicationRole : IdentityRole<Guid>, IEntity
    {

        [StringLength(500)]
        public string Description { get; set; }     // 部门描述
        public string RoldName { get; set; }
        public ApplicationRole() : base()
        {
            this.Id = Guid.NewGuid();
        }

        public ApplicationRole(string roleName) : base(roleName)
        {
            this.Id = Guid.NewGuid();
            this.Name = roleName;
        }

    }
}
